package cn.ac.jaas.ljx.spring.async;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class DemoAsyncTaskService {

	@Async
	public void asyncTask(int i) {
		System.out.println("执行异步任务1：" + i);
	}
	
	@Async
	public void asyncTaskPlus(int i) {
		System.out.println("执行异步任务2：" + i);
	}
}
